Skip to content

Use replace() instead of rename() for atomic file update#4

Open
perryconsulting wants to merge 1 commit intopeless:mainfrom
perryconsulting:main
Open

Use replace() instead of rename() for atomic file update#4
perryconsulting wants to merge 1 commit intopeless:mainfrom
perryconsulting:main

Conversation

@perryconsulting
Copy link

Replaces the use of Path.rename() with Path.replace() when updating the state file to prevent FileExistsError on Windows.

pathlib

Replaces the use of Path.rename() with Path.replace() when updating the state file to prevent FileExistsError on Windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant